package com.me.batm.models;

import com.badlogic.gdx.math.Vector2;

public class SpeedAura extends Aura {
	
	private float speedFactor;
	private boolean positive;
	public SpeedAura (int direction, float x, float y, float width, float height,
				Vector2 speed, float velocity, float radio, float speedFactor, boolean positive) {
		super (direction, x, y , width, height, speed, velocity, radio);
		this.speedFactor = speedFactor;
		this.positive = positive;
		if (this.positive) {
			this.speedFactor = 2;
		}
	}
	
	@Override
	public void applyEffectOverPlayer(Player player) {
		player.speedFactor = this.speedFactor;
	}
	@Override
	public void removeEffectOverPlayer(Player player) {
		player.speedFactor = Player.SPEED;
	}

}
